package ooday01.practise;

import ooday01.Student;

public class StudentsTest {
    public static void main(String[] args) {
        Student student1=new Student("zhangsan",18,"j01","004");
        student1.study();
        student1.sayHi();
        student1.playWith("xyz");

        Student student2=new Student();
        student2.setName("lisi");
        student2.setAge(20);
        student2.setClassName("j01");
        student2.setStuId("005");
        student2.study();
        student2.sayHi();
        student2.playWith(student1.getName());
    }
}
